home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / src / asm_386.h < prev    next >
C/C++ Source or Header  |  1999-02-04  |  4KB  |  104 lines

  1. /* $Id: asm_386.h,v 3.1 1998/03/28 04:05:52 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  3.0
  6.  * Copyright (C) 1995-1998  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * $Log: asm_386.h,v $
  26.  * Revision 3.1  1998/03/28 04:05:52  brianp
  27.  * added CONST macro
  28.  *
  29.  * Revision 3.0  1998/01/31 20:45:56  brianp
  30.  * initial rev
  31.  *
  32.  */
  33.  
  34.  
  35. #ifndef ASM_386_H
  36. #define ASM_386_H
  37.  
  38.  
  39. #include "GL/gl.h"
  40. #include "macros.h"
  41.  
  42.  
  43. /*
  44.  * Prototypes for assembly functions.
  45.  */
  46.  
  47.  
  48. extern void asm_transform_points3_general( GLuint n, GLfloat d[][4],
  49.                                         GLfloat m[16], CONST GLfloat s[][4] );
  50.  
  51. extern void asm_transform_points3_identity( GLuint n, GLfloat d[][4],
  52.                                             CONST GLfloat s[][4] );
  53.  
  54. extern void asm_transform_points3_2d( GLuint n, GLfloat d[][4],
  55.                                       GLfloat m[16], CONST GLfloat s[][4] );
  56.  
  57. extern void asm_transform_points3_2d_no_rot( GLuint n, GLfloat d[][4],
  58.                                          GLfloat m[16], CONST GLfloat s[][4] );
  59.  
  60. extern void asm_transform_points3_3d( GLuint n, GLfloat d[][4], GLfloat m[16],
  61.                                       CONST GLfloat s[][4] );
  62.  
  63. extern void asm_transform_points4_general( GLuint n, GLfloat d[][4],
  64.                                        GLfloat m[16], CONST GLfloat s[][4] );
  65.  
  66. extern void asm_transform_points4_identity( GLuint n, GLfloat d[][4],
  67.                                             CONST GLfloat s[][4] );
  68.  
  69. extern void asm_transform_points4_2d( GLuint n, GLfloat d[][4], GLfloat m[16],
  70.                                       CONST GLfloat s[][4] );
  71.  
  72. extern void asm_transform_points4_2d_no_rot( GLuint n, GLfloat d[][4],
  73.                                       GLfloat m[16], CONST GLfloat s[][4] );
  74.  
  75. extern void asm_transform_points4_3d( GLuint n, GLfloat d[][4], GLfloat m[16],
  76.                                       CONST GLfloat s[][4] );
  77.  
  78. extern void asm_transform_points4_ortho( GLuint n, GLfloat d[][4],
  79.                                          GLfloat m[16], CONST GLfloat s[][4] );
  80.  
  81. extern void asm_transform_points4_perspective( GLuint n, GLfloat d[][4],
  82.                                          GLfloat m[16], CONST GLfloat s[][4] );
  83.  
  84. extern void asm_project_and_cliptest_general( GLuint n, GLfloat d[][4],
  85.                                       GLfloat m[16],
  86.                                       CONST GLfloat s[][4], GLubyte clipmask[],
  87.                                       GLubyte *ormask, GLubyte *andmask );
  88.  
  89. extern void asm_project_and_cliptest_identity( GLuint n, GLfloat d[][4],
  90.                                      CONST GLfloat s[][4], GLubyte clipmask[],
  91.                                      GLubyte *ormask, GLubyte *andmask );
  92.  
  93. extern void asm_project_and_cliptest_ortho( GLuint n, GLfloat d[][4],
  94.                                      GLfloat m[16],
  95.                                      CONST GLfloat s[][4], GLubyte clipmask[],
  96.                                      GLubyte *ormask, GLubyte *andmask );
  97.  
  98. extern void asm_project_and_cliptest_perspective( GLuint n, GLfloat d[][4],
  99.                                       GLfloat m[16],
  100.                                       CONST GLfloat s[][4], GLubyte clipmask[],
  101.                                       GLubyte *ormask, GLubyte *andmask );
  102.  
  103. #endif
  104.